#pragma once
#include "Sprite.h"

class Mario
{
public:
	LPD3DXSPRITE _SpriteHandler;

	int mario_x;		// position of mario
	int mario_y;		

	float mario_vx;		// velocity of mario
	float mario_vy;		

	float mario_vx_last;  // last vx of mario before stop ( to determine the direction of mario )

	CSprite * mario_right; 
	CSprite * mario_left;
	
	void LoadResources(LPDIRECT3DDEVICE9 d3ddv);
	void Update(int);
	void Render(LPDIRECT3DSURFACE9 _BackBuffer);
	void MoveLeft();
	void MoveRight();
	void Stand();
	void Jump();

	Mario(void);
	~Mario(void);
};
